regmap-i2c: add SMBus byte/word reg16 bus for adapters lacking I2C_FUNC_I2C#550
regmap-i2c: add SMBus byte/word reg16 bus for adapters lacking I2C_FUNC_I2C#550nissampa wants to merge 2 commits intosonic-net:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
paulmenzel
left a comment
There was a problem hiding this comment.
Please sent the commit upstream for review.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
can you let me know how to do it ? |
|
@paulmenzel Can you help me in approving and merging it ? |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@nissampa See https://docs.kernel.org/process/submitting-patches.html for sending patches to the appropriate mailing list. Please make sure that the email you send is in plain text (not HTML) and is formatted properly. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Thank you for the instructions. I did as stated in that link |
|
Thank you for sending it upstream. For the record:
Let’s see, what the comments on v2 are. |
v2 has been accepted to 7.1 Kindly let me know what to do with this PR here. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
I can’t find the commit in https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git/. The URL from the notification message is incorrect. |
Can you check now ? It is there. |
@paulmenzel please let me know on this. |
@paulmenzel Kindly please let me know |
Please share the URL to the commit. |
here is my commit. |
|
@paulmenzel Can you please take a look at this ? |
Awesome. It’s also in v7.1-rc1now, so is going to be in 7.1 if no errors are found. |
paulmenzel
left a comment
There was a problem hiding this comment.
Some last minor comments. Everything looks great, and thank you for getting it upstream so quickly.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…NC_I2C Add a regmap-i2c bus type that supports 16-bit register addressing on adapters that have SMBUS_BYTE_DATA and SMBUS_WORD_DATA but lack I2C_FUNC_I2C and I2C_FUNC_SMBUS_I2C_BLOCK (e.g. AMD PIIX4 on AMD SP5/EPYC platforms, including Cisco 8000 series routers). This fixes at24 EEPROM probe failures on PIIX4: at24 3-0055: probe with driver at24 failed with error -524 The fix lives in the regmap-i2c core (per upstream review feedback from Bartosz Golaszewski and Mark Brown) so all drivers benefit from the fallback, not just at24. Signed-off-by: Nishanth Sampath Kumar <nissampa@cisco.com>
|
/azp run |
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 550 in repo sonic-net/sonic-linux-kernel |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
AMD PIIX4 SMBus adapters (found on AMD SP5/EPYC platforms including Cisco 8000 series) support BYTE_DATA and WORD_DATA but lack I2C_FUNC_I2C and I2C_FUNC_SMBUS_I2C_BLOCK. For AT24_FLAG_ADDR16 EEPROMs this causes regmap_get_i2c_bus() to return -ENOTSUPP, making the EEPROM inaccessible.
Add a smbus_addr16_fallback detection and two new helpers:
Force regmap_config.reg_bits=8 when fallback is active so regmap init succeeds; all actual I/O is handled by the SMBus helpers.
Fixes EEPROM access on Cisco 8000-series with AMD SP5 on-die PIIX4 SMBus.